package com.atguigu.gulimall.order;

import com.alibaba.cloud.seata.rest.SeataRestTemplateAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 引入amqp RabbitAutoConfiguration就生效
 * 容器中有 RabbitTemplate AmqpAdmin  CachingConnectionFactory  RabbitMessagingTemplate
 */

@EnableAspectJAutoProxy(exposeProxy = true)
@EnableFeignClients
@RabbitListener
@EnableRabbit
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.order.dao")
@SpringBootApplication(exclude = SeataRestTemplateAutoConfiguration.class)
public class GulimallOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallOrderApplication.class, args);
    }

}
